package com.shiminghui.String;

public class Repalce {
    public static void main(String[] args) {

        String s = "操你妈";

        String string = s.replace("操你妈","***");
        System.out.println(string);

        String[] arr = {"TMD","CNM","MLGB","SB"};

        for (int i = 0; i < arr.length; i++) {
            s.replace(arr[i],"***");
        }

        System.out.println(string);
    }
}
